<?php
$this->pageTitle = Yii::app()->name . ' - Berita (' . $total . ')';
?>

<h1 id="title">Berita (<?php echo $total ?>)</h1>
<div class="byline" id="date">
	<?php
	echo Yii::app()->dateFormatter->formatDateTime($date, 'full', null)
	?>
</div>

<?php
$properties = array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
	'summaryText'=>false,
	'viewData'=>array(
		'rights'=>$rights,
	),
);
$this->widget('zii.widgets.CListView', $properties);

$htmlOptions = array('class'=>'pager float-right', 'id'=>'next-day');
$tomorrow = $date + (24 * 60 * 60);
$params = array('date'=>$tomorrow);
$url = Yii::app()->urlManager->createUrl('news/index', $params);
echo CHtml::link('Next &raquo;', $url, $htmlOptions);

$htmlOptions = array('class'=>'pager', 'id'=>'prev-day');
$yesterday = $date - (24 * 60 * 60);
$params = array('date'=>$yesterday);
$url = Yii::app()->urlManager->createUrl('news/index', $params);
echo CHtml::link('&laquo; Prev', $url, $htmlOptions);
?>

